import React, { useRef } from "react";
export default function Counts() {
    const renderCount = useRef(0)
    return (
        <div>
            <p>
                组件内任何数据没变化，但是已经更新了:
                <span>
                    {(renderCount.current++)}
                </span>
            </p>
        </div>
    )
}